﻿using Nop.Web.Framework.Mvc;
using System;
using System.Collections.Generic;
using System.Web.Mvc;

namespace Nop.Admin.Models.XJ
{
	public class EquipmentStockOutListModel
	{
		public EquipmentStockOutListModel()
		{
			AvailableUsers = new List<SelectListItem>();
			AvailableStates = new List<SelectListItem>();
		}
		public int SearchMaintenanceId { get; set; }
		public int SearchEquipmentId { get; set; }

		/// <summary>
		/// 领用单号
		/// </summary>
		public string SearchSNo { get; set; }
		/// <summary>
		/// 报修单号
		/// </summary>
		public string SearchWNo { get; set; }
		/// <summary>
		/// 设施设备名称
		/// </summary>
		public string SearchName { get; set; }
		/// <summary>
		/// 领用部门
		/// </summary>
		public int SearchDepartmentId { get; set; }
		/// <summary>
		/// 领用人
		/// </summary>
		public int SearchUserId { get; set; }
		/// <summary>
		/// 申请时间
		/// </summary>
		public DateTime? SearchStartOn { get; set; }
		public DateTime? SearchEndOn { get; set; }
		/// <summary>
		/// 状态
		/// </summary>
		public int SearchState { get; set; }
		public IList<SelectListItem> AvailableUsers { get; set; }
		public IList<SelectListItem> AvailableStates { get; set; }
	}
	public class EquipmentStockOutModel : BaseNopEntityModel
	{
		public EquipmentStockOutModel()
		{
			this.AvailablePlaces = new List<SelectListItem>();
		}
		public int SearchEquipmentId { get; set; }
		/// <summary>
		/// 巡检计划Id
		/// </summary>
		public int MaintenanceId { get; set; }
		public string SNo { get; set; }
		/// <summary>
		/// 审核人
		/// </summary>
		public string Reviewer { get; set; }
		/// <summary>
		/// 审核时间
		/// </summary>
		public DateTime? ReviewOn { get; set; }
		/// <summary>
		/// 确认人
		/// </summary>
		public string Keeper { get; set; }
		/// <summary>
		/// 确认时间
		/// </summary>
		public DateTime? KeeperOn { get; set; }
		public int State { get; set; }
		public string StateName { get; set; }
		/// <summary>
		/// 创建人
		/// </summary>
		public int CustomerId { get; set; }
		public string CustomerName { get; set; }
		public string DepartmentName { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedOn { get; set; }
		/// <summary>
		/// 巡检点
		/// </summary>
		public IList<SelectListItem> AvailablePlaces { get; set; }
	}
}